#include "U2RenderWindow.h"




U2EG_NAMESPACE_USING


U2RenderWindow::U2RenderWindow()
: mIsPrimary(false)
{
    mAutoDeactivatedOnFocusChange = true;
}

//-----------------------------------------------------------------------
void U2RenderWindow::getMetrics(unsigned int& width, unsigned int& height, unsigned int& colourDepth,
	int& left, int& top)
{
    width = mWidth;
    height = mHeight;
    colourDepth = mColourDepth;
    left = mLeft;
    top = mTop;
}
//-----------------------------------------------------------------------
bool U2RenderWindow::isFullScreen(void) const
{
    return mIsFullScreen;
}
//-----------------------------------------------------------------------
bool U2RenderWindow::isPrimary(void) const
{
    return mIsPrimary;
}

bool U2RenderWindow::isDeactivatedOnFocusChange() const
{
    return mAutoDeactivatedOnFocusChange;
}

void U2RenderWindow::setDeactivateOnFocusChange(bool deactivate)
{
    mAutoDeactivatedOnFocusChange = deactivate;
}
